package com.assessment.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.staff.entity.Staff;


@Entity
@Table(name="t_performance_interview")
public class PerformanceInterview 
{
	private Long id;
	private Staff staff;
	private Staff superior;
	private String title;
	private String content;
	private Date talkTime;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	public Staff getStaff() {
		return staff;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	public Staff getSuperior() {
		return superior;
	}
	public String getTitle() {
		return title;
	}
	public String getContent() {
		return content;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getTalkTime() {
		return talkTime;
	}
		

	public void setId(Long id) {
		this.id = id;
	}
	public void setStaff(Staff staff) {
		this.staff = staff;
	}
	public void setSuperior(Staff superior) {
		this.superior = superior;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setTalkTime(Date talkTime) {
		this.talkTime = talkTime;
	}
	
}
